package com.ruoyi.board.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.board.mapper.StockBoardIndustrySummaryThsMapper;
import com.ruoyi.board.domain.StockBoardIndustrySummaryThs;
import com.ruoyi.board.service.IStockBoardIndustrySummaryThsService;
import com.ruoyi.common.core.text.Convert;

/**
 * 同花顺-同花顺行业一览表Service业务层处理
 * 
 * @author leng.xz
 * @date 2024-05-17
 */
@Service
public class StockBoardIndustrySummaryThsServiceImpl implements IStockBoardIndustrySummaryThsService 
{
    @Autowired
    private StockBoardIndustrySummaryThsMapper stockBoardIndustrySummaryThsMapper;

    /**
     * 查询同花顺-同花顺行业一览表
     * 
     * @param id 同花顺-同花顺行业一览表ID
     * @return 同花顺-同花顺行业一览表
     */
    @Override
    public StockBoardIndustrySummaryThs selectStockBoardIndustrySummaryThsById(Long id)
    {
        return stockBoardIndustrySummaryThsMapper.selectStockBoardIndustrySummaryThsById(id);
    }

    /**
     * 查询同花顺-同花顺行业一览表列表
     * 
     * @param stockBoardIndustrySummaryThs 同花顺-同花顺行业一览表
     * @return 同花顺-同花顺行业一览表
     */
    @Override
    public List<StockBoardIndustrySummaryThs> selectStockBoardIndustrySummaryThsList(StockBoardIndustrySummaryThs stockBoardIndustrySummaryThs)
    {
        return stockBoardIndustrySummaryThsMapper.selectStockBoardIndustrySummaryThsList(stockBoardIndustrySummaryThs);
    }

    /**
     * 新增同花顺-同花顺行业一览表
     * 
     * @param stockBoardIndustrySummaryThs 同花顺-同花顺行业一览表
     * @return 结果
     */
    @Override
    public int insertStockBoardIndustrySummaryThs(StockBoardIndustrySummaryThs stockBoardIndustrySummaryThs)
    {
        return stockBoardIndustrySummaryThsMapper.insertStockBoardIndustrySummaryThs(stockBoardIndustrySummaryThs);
    }

    /**
     * 修改同花顺-同花顺行业一览表
     * 
     * @param stockBoardIndustrySummaryThs 同花顺-同花顺行业一览表
     * @return 结果
     */
    @Override
    public int updateStockBoardIndustrySummaryThs(StockBoardIndustrySummaryThs stockBoardIndustrySummaryThs)
    {
        return stockBoardIndustrySummaryThsMapper.updateStockBoardIndustrySummaryThs(stockBoardIndustrySummaryThs);
    }

    /**
     * 删除同花顺-同花顺行业一览表对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteStockBoardIndustrySummaryThsByIds(String ids)
    {
        return stockBoardIndustrySummaryThsMapper.deleteStockBoardIndustrySummaryThsByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除同花顺-同花顺行业一览表信息
     * 
     * @param id 同花顺-同花顺行业一览表ID
     * @return 结果
     */
    @Override
    public int deleteStockBoardIndustrySummaryThsById(Long id)
    {
        return stockBoardIndustrySummaryThsMapper.deleteStockBoardIndustrySummaryThsById(id);
    }
}
